package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class ConsigneeBean implements IJsonParser, Serializable{

	/**
	 *  "consignee": {
        "delivery_way": "快递运输",
        "phone": "13311111111",
        "consignee_id": 13,
        "actor_id": 28,
        "area": "测试地区",
        "is_default": false,
        "address": "测试地址",
        "name": "测试地址"
    }
	 */
	private static final long serialVersionUID = -2216786251955528282L;
	private String delivery_way ;
	private String phone ;
	private String consignee_id ;
	private String actor_id ;
	private String area ;
	private boolean is_default ;
	private String address ;
	private String name ;
	public String getDelivery_way() {
		return delivery_way;
	}
	public String getPhone() {
		return phone;
	}
	public String getConsignee_id() {
		return consignee_id;
	}
	public String getActor_id() {
		return actor_id;
	}
	public String getArea() {
		return area;
	}
	public boolean isIs_default() {
		return is_default;
	}
	public String getAddress() {
		return address;
	}
	public String getName() {
		return name;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, ConsigneeBean.class);
		}
		return null;
	}

}
